package com.ruoyi.bbsAdmin.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 评论对象 comment
 * 
 * @author ruoyi
 * @date 2022-04-01
 */
@TableName(value = "bbs_comment")
public class Comment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一id */
    private String commentid;

    /** 评论者id */
    @Excel(name = "评论者id")
    private String userid;

    /** 帖子id */
    @Excel(name = "帖子id")
    private String contentid;

    /** 子评论所在主评论的id */
    @Excel(name = "子评论所在主评论的id")
    private String replycommentid;

    /** 是否是子评论对子评论的评论1：是；0：否 */
    @Excel(name = "是否是子评论对子评论的评论1：是；0：否")
    private Integer isreply;

    /** 子评论回复的子评论对象名称 */
    @Excel(name = "子评论回复的子评论对象名称")
    private String replynickname;

    @Excel(name = "子评论回复的子评论对象id")
    private String replyuserid;

    /** 1：主评论；0：评论的评论 */
    @Excel(name = "1：主评论；0：评论的评论")
    private Integer ismain;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String commenttext;

    /** 评论的图片，以逗号分割的形式存储 */
    @Excel(name = "评论的图片，以逗号分割的形式存储")
    private String commenturl;

    /** 点赞数 */
    @Excel(name = "点赞数")
    private Long upnum;

    /** “踩”数 */
    @Excel(name = "“踩”数")
    private Long downnum;

    @Excel(name = "子评论数")
    private Long childrennum;

    /** 举报数量 */
    @Excel(name = "举报数量")
    private Long informnum;

    /** 评论状态。0：正常；1：折叠展示；2：置顶；3：需要审核；4：已下架；5：举报； */
    @Excel(name = "评论状态。0：正常；1：折叠展示；2：置顶；3：需要审核；4：已下架；5：举报；")
    private Integer commentstate;

    /** 创建时间 */
    @Excel(name = "创建时间")
    private Date createtime;

    /** 更新时间 */
    @Excel(name = "更新时间")
    private Date updatetime;

    public void setCommentid(String commentid) 
    {
        this.commentid = commentid;
    }

    public String getCommentid() 
    {
        return commentid;
    }
    public void setUserid(String userid) 
    {
        this.userid = userid;
    }

    public String getUserid() 
    {
        return userid;
    }
    public void setContentid(String contentid) 
    {
        this.contentid = contentid;
    }

    public String getContentid() 
    {
        return contentid;
    }
    public void setReplycommentid(String replycommentid) 
    {
        this.replycommentid = replycommentid;
    }

    public String getReplycommentid() 
    {
        return replycommentid;
    }
    public void setIsreply(Integer isreply) 
    {
        this.isreply = isreply;
    }

    public Integer getIsreply() 
    {
        return isreply;
    }
    public void setReplynickname(String replynickname) 
    {
        this.replynickname = replynickname;
    }

    public String getReplynickname() 
    {
        return replynickname;
    }
    public void setIsmain(Integer ismain) 
    {
        this.ismain = ismain;
    }

    public void setReplyuserid(String replyuserid)
    {
        this.replyuserid = replyuserid;
    }

    public String getReplyuserid()
    {
        return replyuserid;
    }

    public Integer getIsmain() 
    {
        return ismain;
    }
    public void setCommenttext(String commenttext) 
    {
        this.commenttext = commenttext;
    }

    public String getCommenttext() 
    {
        return commenttext;
    }
    public void setCommenturl(String commenturl) 
    {
        this.commenturl = commenturl;
    }

    public String getCommenturl() 
    {
        return commenturl;
    }
    public void setUpnum(Long upnum) 
    {
        this.upnum = upnum;
    }

    public Long getUpnum() 
    {
        return upnum;
    }

    public void setChildrennum(Long childrennum)
    {
        this.childrennum = childrennum;
    }
    public Long getChildrennum()
    {
        return childrennum;
    }


    public void setDownnum(Long downnum) 
    {
        this.downnum = downnum;
    }

    public Long getDownnum() 
    {
        return downnum;
    }
    public void setInformnum(Long informnum) 
    {
        this.informnum = informnum;
    }

    public Long getInformnum() 
    {
        return informnum;
    }
    public void setCommentstate(Integer commentstate) 
    {
        this.commentstate = commentstate;
    }

    public Integer getCommentstate() 
    {
        return commentstate;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("commentid", getCommentid())
            .append("userid", getUserid())
            .append("contentid", getContentid())
            .append("replycommentid", getReplycommentid())
            .append("isreply", getIsreply())
            .append("replynickname", getReplynickname())
            .append("ismain", getIsmain())
            .append("commenttext", getCommenttext())
            .append("commenturl", getCommenturl())
            .append("upnum", getUpnum())
            .append("childrennum",getChildrennum())
            .append("downnum", getDownnum())
            .append("informnum", getInformnum())
            .append("commentstate", getCommentstate())
            .append("createtime", getCreatetime())
            .append("updatetime", getUpdatetime())
            .toString();
    }
}
